package cn.engage.ekcc.fegin;

import cn.engage.ekcc.domain.Product;
import cn.engage.ekcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

@FeignClient(name = "service-product", path = "/product")
public interface ProductFeginCliect {
    /* 商品入库*/
    @RequestMapping(value="/RK",method= RequestMethod.POST)
    JsonResult RK(@Valid @RequestBody Product product);
}
